package com.neuron.platform.model;

import com.fasterxml.jackson.annotation.JsonClassDescription;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;

import java.time.Instant;

@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonClassDescription("A structure holding system information")
public record DeviceRequest(
        @JsonPropertyDescription("Name of the equipment")
        String equipmentName,
        @JsonPropertyDescription("Type of the function")
        String functionType,
        @JsonPropertyDescription("Value of the equipment")
        Double value,
        @JsonPropertyDescription("Reading  of the equipment")
        String reading,
        @JsonPropertyDescription("Time of the reading")
        Instant time
) {
}
